namespace EntityFramework.Demo2.Migrations
{
    using System.Data.Entity.Migrations;
    
    public partial class AddPostAbstrac : DbMigration
    {
        public override void Up()
        {
            AddColumn("Posts", "Abstract", c => c.String());
            Sql("UPDATE Posts SET Abstract = Content");
        }
        
        public override void Down()
        {
            DropColumn("Posts", "Abstract");
        }
    }
}
